package com.wargameproject.cartes;

import com.wargameproject.Case;
import com.wargameproject.Partie;
import com.wargameproject.terrain.*;

public class Map1 {
	
	int i;
	int j;
	
	public void CreationMap1(){
		
		if (i == 0) {
			if (j == 0) {
				com.wargameproject.Partie.cases[i][j].terrain = new Plaine();
			} else if (j < 2) {
				com.wargameproject.Partie.cases[i][j].terrain = new Plaine();
			} else if (j < 3) {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			} else if (j < 9) {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			} else if (j < 10) {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			}
		} else if (i == 1) {
			if (j < 2) {
				com.wargameproject.Partie.cases[i][j].terrain = new Plaine();
			} else if (j < 9) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			}
		} else if (i == 2) {
			if (j == 0) {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			} else if (j < 5) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else if (j < 6) {
				com.wargameproject.Partie.cases[i][j].terrain = new Neige();
			} else if (j < 8) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else if (j < 9) {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			} else if (j < 10) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			}
		} else if (i == 3) {
			if (j < 3) {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			} else if (j < 4) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else if (j < 6) {
				com.wargameproject.Partie.cases[i][j].terrain = new Neige();
			} else if (j < 9) {
				com.wargameproject.Partie.cases[i][j].terrain = new Montagne();
			} else if (j < 10) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			}
		} else if (i == 4) {
			if (j == 0) {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			} else if (j < 3) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else if (j < 5) {
				com.wargameproject.Partie.cases[i][j].terrain = new Neige();
			} else if (j < 8) {
				com.wargameproject.Partie.cases[i][j].terrain = new Montagne();
			} else if (j < 10) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			}
		} else if (i == 5) {
			if (j < 2) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else if (j < 4) {
				com.wargameproject.Partie.cases[i][j].terrain = new Neige();
			} else if (j < 7) {
				com.wargameproject.Partie.cases[i][j].terrain = new Montagne();
			} else if (j < 9) {
				com.wargameproject.Partie.cases[i][j].terrain = new Neige();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			}
		} else if (i == 6) {
			if (j < 1) {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			} else if (j < 3) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else if (j < 6) {
				com.wargameproject.Partie.cases[i][j].terrain = new Montagne();
			} else if (j < 8) {
				com.wargameproject.Partie.cases[i][j].terrain = new Neige();
			} else if (j < 10) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			}
		} else if (i == 7) {
			if (j < 1) {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			} else if (j < 2) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else if (j < 5) {
				com.wargameproject.Partie.cases[i][j].terrain = new Montagne();
			} else if (j < 7) {
				com.wargameproject.Partie.cases[i][j].terrain = new Neige();
			} else if (j < 8) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			}
		} else if (i == 8) {
			if (j < 1) {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			} else if (j < 2) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else if (j < 3) {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			} else if (j < 5) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else if (j < 6) {
				com.wargameproject.Partie.cases[i][j].terrain = new Neige();
			} else if (j < 10) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			}
		} else if (i == 9) {
			if (j < 2) {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			} else if (j < 10) {
				com.wargameproject.Partie.cases[i][j].terrain = new Desert();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Plaine();
			}
		} else {
			if (j < 1) {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			} else if (j < 3) {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			} else if (j < 8) {
				com.wargameproject.Partie.cases[i][j].terrain = new Mer();
			} else if (j < 9) {
				com.wargameproject.Partie.cases[i][j].terrain = new Foret();
			} else if (j < 10) {
				com.wargameproject.Partie.cases[i][j].terrain = new Plaine();
			} else {
				com.wargameproject.Partie.cases[i][j].terrain = new Plaine();
			}
		
		}
	}
	
}
